#include "pwm.h"
#include "headfile.h"

void pwm_init(void)
{
    gtm_pwm_init(ATOM0_CH1_P14_4, 15*1000, 0);
    gtm_pwm_init(ATOM0_CH1_P33_9, 100, 0);
}

void pwm_output(uint motor, uint stree)
{
    pwm_duty(ATOM0_CH1_P14_4, motor);
    pwm_duty(ATOM0_CH1_P33_9, stree);
}


